﻿using System.Collections.Generic;
using Foothill.Model;

namespace Foothill.Filter.Test.TestUtilities
{
    public class SimpleAdIdEqualityComparer : IEqualityComparer<ForSaleAd>
    {
        public bool Equals(ForSaleAd x, ForSaleAd y)
        {
            return x.AdId == y.AdId;
        }

        public int GetHashCode(ForSaleAd x)
        {
            return x.AdId;
        }
    }
}
